import { Component, Input, OnInit } from '@angular/core';
import { FormLayout } from 'ng-devui/form';
import { SessionService } from 'src/app/services/session.service';

@Component({
  selector: 'app-add-user',
  templateUrl: './add-user.component.html',
  styleUrls: ['./add-user.component.scss']
})
export class AddUserComponent implements OnInit {

  @Input() data: any;
  userInfo: any = {};
  options1 = ['normal', 'admin'];
  options2 = ['normal'];
  editeRole: any;
  // branch = 'develop';
  // tagName = '';
  // des = '';
  layoutDirection: FormLayout = FormLayout.Vertical;

  constructor(
    private sessionSvc : SessionService
  ) { }

  ngOnInit(): void {
      this.editeRole = this.sessionSvc.getSessionValue('user').roleName;

  }

}
